package com.yun.zf.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yun.zf.common.admin.dto.customer.CustomerInfoDto;
import com.yun.zf.common.admin.model.customer.CustomerDetailInfoMo;
import com.yun.zf.common.admin.model.customer.CustomerReqMo;
import com.yun.zf.common.admin.model.search.CustomerSearchMo;
import com.yun.zf.common.app.domain.ZfCustomerRequirement;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 客户资源需求表 服务类
 * </p>
 *
 * @author cj
 * @since 2021-03-30
 */
public interface ZfCustomerRequirementService extends IService<ZfCustomerRequirement> {

    public  int addRequirement(CustomerReqMo req,Long proCode, Long cityCode);

    public  int motifyRequirement(CustomerReqMo req,Long proCode, Long cityCode);

    public List<CustomerInfoDto> findRequirements(Long proCode, Long cityCode, Long customerId);

    /**
     * 获取用户需求
     * @param proCode
     * @param cityCode
     * @param requirementId
     * @return
     */
    public CustomerReqMo getRequirement(Long proCode, Long cityCode, Long requirementId);

    public Map<String, Object> searchCustomer(CustomerSearchMo customerSearchMo,Long proCode, Long cityCode);

    public CustomerDetailInfoMo getCustomerDetailInfo(Long customerId, Long provCode, Long cityCode);

    /**
     * 客户信息推送es
     */
    public void pushCustomer(Long proCode, Long cityCode, Long customerId);

    public void pushPlatform(Long proCode, Long cityCode, String customerId);


}
